package com.swust.book_shop.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import java.math.BigDecimal;

/**
 * @author liushuai
 * @create 2022-05-18 9:40
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class BookQueryVo {

    private String bookName;
    @DecimalMin(value = "0")
    @DecimalMax(value = "1000")
    private BigDecimal low;
    @DecimalMin(value = "15")
    private BigDecimal high;
}
